<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui"> 
<h:head>
	<title>Página de Edição</title>
	<link rel="stylesheet" href="resources/css/estilos.css"/>
</h:head> 
<h:body> 
<h:outputText value="Bem Vindo ao Prime" />
	<h:form>
		<p:commandButton value=" Novo Usuario" image="icon-add"/>
	</h:form>
	<br/><br/>
	<h:form id="testando">  
	    <p:dataTable var="teste" value="#{testeBean.listaTeste}">  
	        <p:column headerText="ID">  
	            <h:outputText value="#{teste.id}" />  
	        </p:column>  
	  
	        <p:column headerText="Senha">  
	            <h:outputText value="#{teste.senha}" />  
	        </p:column>  
	  
	        <p:column headerText="Nome">  
	            <h:outputText value="#{teste.nome}" />  
	        </p:column>  
	  
	        <p:column headerText="Login">  
	            <h:outputText value="#{teste.login}" />  
	        </p:column>  
	        
	        <p:column style="width:8%; text-align: center">  
                <p:commandButton  update=":testando" oncomplete="carDialog.show()" icon="ui-icon-search" title="Editar"  />
                <p:commandButton  update=":testando" oncomplete="carDialog.show()" icon="ui-icon-search" title="Eliminar" />  
            </p:column>  
	        
	    </p:dataTable>  
	</h:form>
</h:body>
</html>